package com.fjb.plugins.spi;

import java.util.ServiceLoader;

import com.fjb.plugins.spi.service.ISpiService;

public class SpiDemo {

	public static void main(String[] args) {
			
		ServiceLoader<ISpiService> load = ServiceLoader.load(ISpiService.class);
		for (ISpiService spi : load) {
			spi.invoker(spi.getClass().toString());
			spi.register(spi.getClass().toString());
		}
		
	}
	
}
